package cn.iocoder.yudao.module.project.controller.admin.electronicscalemanage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 电子秤管理新增/修改 Request VO")
@Data
public class ElectronicScaleManageSaveReqVO {

    @Schema(description = "电子秤编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20342")
    private Long id;

    @Schema(description = "绑定用户id", example = "16069")
    private Long userId;

    @Schema(description = "电子秤名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "电子秤名称不能为空")
    private String name;

    @Schema(description = "ip", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "ip不能为空")
    private String ip;

    @Schema(description = "port", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "port不能为空")
    private String port;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
    // @NotEmpty(message = "备注不能为空")
    private String remark;

    @Schema(description = "电子秤状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer status;

}